import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { NgModule, ModuleWithProviders } from '@angular/core';

import { PaginationModule } from "ng2-bootstrap/pagination";
import { AppPagination } from './pagination.component';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    PaginationModule.forRoot()
  ],
  declarations: [AppPagination],
  exports: [AppPagination]
})
export class AppPagationModule {
  public static forRoot(): ModuleWithProviders {
    return {ngModule: AppPagationModule};
  }
}
